Git checkout single file

Checkout from other branch

git checkout develop /path/to/file.php

Checkout from HEAD

git checkout HEAD -- /path/to/file.php

Leave a Reply